package com.example.demo.finitestatemachine.service;

import com.example.demo.finitestatemachine.state.LiftStateCodeEnums;

/**
 * @author liyuncong
 * @version 1.0
 * @file ILift
 * @brief ILift
 * @details 电梯抽象接口
 * @date 2022-12-27
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-12-27                  liyuncong          Created
 */
public interface ILift {

    // 开门状态
    void open();

    // 关门状态
    void close();

    // 移动状态
    void run();

    // 停止状态
    void stop();

    // 设置电梯状态
    void setStatus(LiftStateCodeEnums state);
}
